<?php
ob_start();
session_start(); 
ob_clean();
/**
 * The Header for our theme.
 *
 * Displays all of the <head> section and everything up till <div id="main">
 *
 * @package WordPress
 * @subpackage web_doanh_nghiep
 * @since web_doanh_nghiep 1.0
 */
?><?php 
 $uri = "http://" . $_SERVER['HTTP_HOST']  . $_SERVER['REQUEST_URI'];
 $home = get_option('home').'/';
 
 get_page_link(85);
 
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?php bloginfo('title');?></title>
<meta content="<?php bloginfo('description');?>" name="keywords" />
<link href="<?php bloginfo("template_directory"); ?>/_css/reset.css" rel="stylesheet" type="text/css">
<?php if($uri==($home)){?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style.css" rel="stylesheet" type="text/css">
<?php }elseif($uri== get_page_link(85)){?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style_2.css" rel="stylesheet" type="text/css">
<?php }else{?>
<link href="<?php bloginfo("template_directory"); ?>/_css/cy-style_1.css" rel="stylesheet" type="text/css">
<?php } ?>
<script type="text/javascript" src="<?php bloginfo("template_directory"); ?>/_js/jquery.js"></script>
<script src="<?php bloginfo("template_directory"); ?>/_js/jquery.tabify.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript">
	// <![CDATA[
	$(document).ready(function () {
	$('#tab_product').tabify();
	});				
	// ]]>
</script>
<link rel="icon" type="image/icon" href="favicon.ico">
<!-- <script type="text/javascript" src="_js/jquery.js"></script> -->
<!--[if IE 6]>
	<script type="text/javascript" src="_js/unitpngfix.js"></script>
<![endif]-->
</head>
<!--[if gte IE 8]>
<body class="ie8">
<![endif]-->
<!--[if IE 7]>
<body class="ie7">
<![endif]-->
<!--[if IE 6]>
<body class="ie6">
<![endif]-->
<!--[if !IE]><!-->
<!--<![endif]-->
<body>
<script type="text/javascript">
$(document).ready(function() {
//Jquery codes go here
});
</script>
<div class="cy-w-header-top">
	<div class="cy-header-top">
		<div class="cy-logo">
        <a href="<?php bloginfo('url')?>"><img src="<?php bloginfo("template_directory"); ?>/_img/logo.png" />
        </a>
        </div><!--cy-logo-->   
        <ul>
        <li><a href="<?php bloginfo('url');?>">Trang chủ</a></li>
        <li><a href="#">Liên hệ</a></li>
        <li><a href="#">Sitemap</a></li>
        </ul>
    </div><!--cy-header-top-->
</div><!--cy-header-top-->
<div class="cy-w-header">
    <div class="cy-header">
     <ul id="topnav">
     	<li><a href="<?php bloginfo('url');?>">Trang chủ</a></li> 
        <li><a href="">Gới thiệu</a>
        <ul class='children' >
         <?php
            	$loop = new WP_Query(array('post_type'=>'gioi_thieu','posts_per_page'=>10,'order'=>'ASC'));?>
                <?php while ( $loop->have_posts() ) : $loop->the_post(); //bat dau vong lap ?>
                <li><a href="<?php the_permalink();?>"><?php the_title();?></a></li>
                <?php endwhile; //ket thuc vong lap ?>
                <?php wp_reset_query();?>
        </ul>
        </li> 
        <li><a href="">Sản phẩm</a>
         <?php
			echo "<ul class='children' >"; 
					echo wp_list_categories(
					array(

						'taxonomy' => 'danh_muc_san_pham', // Registered tax name
						'orderby'  => 'ID',
   						'order'    => 'ASC',
						'parent' =>8,
						'show_count' => false,
						'hierarchical' => true,
						'title_li' => __( '' ),
						'style' => 'list',
						'echo' => '1',
					));
					echo "</ul>";
					?>
        </li> 
        <li><a href="">Tin tức & sự kiện</a></li> 
        <li><a href="">Thư viện</a></li> 
        <li><a href="<?php echo  get_page_link(85);?>">Liên hệ</a></li> 
        <li><a href="">Sitemap</a></li> 
      
     </ul>
     <div class="cy-banner">
     </div><!--cy-banner-->
    </div><!--cy-header-->
</div><!--cy-w-header-->